﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
         h1 
         {
            text-align:center;
         }
         p
         {
             text-align:center;
         }
        #TextArea1 {
            height: 130px;
            width: 180px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1>在线新闻发布系统</h1>
            <asp:Label ID="Label1" runat="server" Text="新闻来源"></asp:Label>
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem>新华社</asp:ListItem>
                <asp:ListItem>黎明社</asp:ListItem>
                <asp:ListItem>人民日报</asp:ListItem>
                <asp:ListItem>新周刊</asp:ListItem>
            </asp:DropDownList>
            <br/>

            <asp:Label ID="Label2" runat="server" Text="新闻内容："></asp:Label>
            <textarea id="TextArea1" runat="server"></textarea>
            <br/>
            
            <asp:Label ID="Label3" runat="server" Text="发布时间"></asp:Label>
            <br/>
            <p>
            <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click"/>
                <asp:Button ID="Button2" runat="server" Text="重置" OnClick="Button2_Click"/>
            </p>
            <br/>
            <asp:Label ID="Label4" runat="server" Text=""></asp:Label>
        </div>
    </form>
</body>
</html>
